<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="header.jsp" %>

<div class="tabCont phm pts">
	<script type="text/javascript" language="javascript">
       if (top.location != window.location) {
           top.location = window.location;
       }
    </script>
	<div id="login-content" class="loginBox">
		<form action="<%=path %>/dologin.do" method="post"
			alertmessage="请填写用户和密码！">
			<p class="pbl pll fsm fcbl">用户注册、登录后，即可发布房源、管理房源、管理收藏、设置刷新房源及修改个人资料。</p>
			<p class="loginCont">
				<label>用户：</label> <input type="text" value="${userName}" id="Username"
					name="UserName" class="text-input required char" maxlength="12">
				<span class="notification hidden" style="display: none"
					for="Username"> 必填，由数字或字母或数字与字母的组合组成。 </span>
			</p>
			<p class="loginCont">
				<label>密码：</label> <input type="password" id="Password"
					name="Password" class="text-input required" maxlength="12">
				<a href="http://www.e-efe.com/Home/FindPassword" class="mls uLine">找回密码</a>
				<span class="notification hidden" style="display: none"
					for="Password"> 必填 </span>
			</p>
			<c:if test="${not empty error}">
			<p class="loginCont" style="color: red;">
				<label>提示：</label>${error}
			</p>
			</c:if>
			<p class="loginCont" style="padding-left: 75px;">
				<input type="submit" value="登录" class="greenBtn left"> <span
					class="pll left" style="padding-top: 10px;">如果未注册，请先<a
					href="<%=path %>/user/register.do"
					class="uLine fcbl fwb fsm">注册</a>！
				</span>
			</p>
			<div class="clear"></div>
			<input type="hidden" name="redirectUrl"
				value="<%=request.getParameter("redirectUrl")==null?"":request.getParameter("redirectUrl")%>">
		</form>
	</div>
	<div class="clear"></div>
	<script type="text/javascript">
        $(function () { bindForm(); });
    </script>
</div>
<div class="tabBtm"></div>

<%@ include file="foot.jsp" %>